package com.alibaba.weex.svg;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

public class SvgColors {
	private static final Map<String, Integer> COLOURS;

	public static Integer mapColour(String colour) {
		return COLOURS.get(colour);
	}

	static {
		Map<String, Integer> colors = new HashMap<String, Integer>();
		colors.put("aliceblue", 0xfff0f8ff);
		colors.put("antiquewhite", 0xfffaebd7);
		colors.put("aqua", 0xff00ffff);
		colors.put("aquamarine", 0xff7fffd4);
		colors.put("azure", 0xfff0ffff);
		colors.put("beige", 0xfff5f5dc);
		colors.put("bisque", 0xffffe4c4);
		colors.put("black", 0xff000000);
		colors.put("blanchedalmond", 0xffffebcd);
		colors.put("blue", 0xff0000ff);
		colors.put("blueviolet", 0xff8a2be2);
		colors.put("brown", 0xffa52a2a);
		colors.put("burlywood", 0xffdeb887);
		colors.put("cadetblue", 0xff5f9ea0);
		colors.put("chartreuse", 0xff7fff00);
		colors.put("chocolate", 0xffd2691e);
		colors.put("coral", 0xffff7f50);
		colors.put("cornflowerblue", 0xff6495ed);
		colors.put("cornsilk", 0xfffff8dc);
		colors.put("crimson", 0xffdc143c);
		colors.put("cyan", 0xff00ffff);
		colors.put("darkblue", 0xff00008b);
		colors.put("darkcyan", 0xff008b8b);
		colors.put("darkgoldenrod", 0xffb8860b);
		colors.put("darkgray", 0xffa9a9a9);
		colors.put("darkgreen", 0xff006400);
		colors.put("darkgrey", 0xffa9a9a9);
		colors.put("darkkhaki", 0xffbdb76b);
		colors.put("darkmagenta", 0xff8b008b);
		colors.put("darkolivegreen", 0xff556b2f);
		colors.put("darkorange", 0xffff8c00);
		colors.put("darkorchid", 0xff9932cc);
		colors.put("darkred", 0xff8b0000);
		colors.put("darksalmon", 0xffe9967a);
		colors.put("darkseagreen", 0xff8fbc8f);
		colors.put("darkslateblue", 0xff483d8b);
		colors.put("darkslategray", 0xff2f4f4f);
		colors.put("darkslategrey", 0xff2f4f4f);
		colors.put("darkturquoise", 0xff00ced1);
		colors.put("darkviolet", 0xff9400d3);
		colors.put("deeppink", 0xffff1493);
		colors.put("deepskyblue", 0xff00bfff);
		colors.put("dimgray", 0xff696969);
		colors.put("dimgrey", 0xff696969);
		colors.put("dodgerblue", 0xff1e90ff);
		colors.put("firebrick", 0xffb22222);
		colors.put("floralwhite", 0xfffffaf0);
		colors.put("forestgreen", 0xff228b22);
		colors.put("fuchsia", 0xffff00ff);
		colors.put("gainsboro", 0xffdcdcdc);
		colors.put("ghostwhite", 0xfff8f8ff);
		colors.put("gold", 0xffffd700);
		colors.put("goldenrod", 0xffdaa520);
		colors.put("gray", 0xff808080);
		colors.put("green", 0xff008000);
		colors.put("greenyellow", 0xffadff2f);
		colors.put("grey", 0xff808080);
		colors.put("honeydew", 0xfff0fff0);
		colors.put("hotpink", 0xffff69b4);
		colors.put("indianred", 0xffcd5c5c);
		colors.put("indigo", 0xff4b0082);
		colors.put("ivory", 0xfffffff0);
		colors.put("khaki", 0xfff0e68c);
		colors.put("lavender", 0xffe6e6fa);
		colors.put("lavenderblush", 0xfffff0f5);
		colors.put("lawngreen", 0xff7cfc00);
		colors.put("lemonchiffon", 0xfffffacd);
		colors.put("lightblue", 0xffadd8e6);
		colors.put("lightcoral", 0xfff08080);
		colors.put("lightcyan", 0xffe0ffff);
		colors.put("lightgoldenrodyellow", 0xfffafad2);
		colors.put("lightgray", 0xffd3d3d3);
		colors.put("lightgreen", 0xff90ee90);
		colors.put("lightgrey", 0xffd3d3d3);
		colors.put("lightpink", 0xffffb6c1);
		colors.put("lightsalmon", 0xffffa07a);
		colors.put("lightseagreen", 0xff20b2aa);
		colors.put("lightskyblue", 0xff87cefa);
		colors.put("lightslategray", 0xff778899);
		colors.put("lightslategrey", 0xff778899);
		colors.put("lightsteelblue", 0xffb0c4de);
		colors.put("lightyellow", 0xffffffe0);
		colors.put("lime", 0xff00ff00);
		colors.put("limegreen", 0xff32cd32);
		colors.put("linen", 0xfffaf0e6);
		colors.put("magenta", 0xffff00ff);
		colors.put("maroon", 0xff800000);
		colors.put("mediumaquamarine", 0xff66cdaa);
		colors.put("mediumblue", 0xff0000cd);
		colors.put("mediumorchid", 0xffba55d3);
		colors.put("mediumpurple", 0xff9370db);
		colors.put("mediumseagreen", 0xff3cb371);
		colors.put("mediumslateblue", 0xff7b68ee);
		colors.put("mediumspringgreen", 0xff00fa9a);
		colors.put("mediumturquoise", 0xff48d1cc);
		colors.put("mediumvioletred", 0xffc71585);
		colors.put("midnightblue", 0xff191970);
		colors.put("mintcream", 0xfff5fffa);
		colors.put("mistyrose", 0xffffe4e1);
		colors.put("moccasin", 0xffffe4b5);
		colors.put("navajowhite", 0xffffdead);
		colors.put("navy", 0xff000080);
		colors.put("oldlace", 0xfffdf5e6);
		colors.put("olive", 0xff808000);
		colors.put("olivedrab", 0xff6b8e23);
		colors.put("orange", 0xffffa500);
		colors.put("orangered", 0xffff4500);
		colors.put("orchid", 0xffda70d6);
		colors.put("palegoldenrod", 0xffeee8aa);
		colors.put("palegreen", 0xff98fb98);
		colors.put("paleturquoise", 0xffafeeee);
		colors.put("palevioletred", 0xffdb7093);
		colors.put("papayawhip", 0xffffefd5);
		colors.put("peachpuff", 0xffffdab9);
		colors.put("peru", 0xffcd853f);
		colors.put("pink", 0xffffc0cb);
		colors.put("plum", 0xffdda0dd);
		colors.put("powderblue", 0xffb0e0e6);
		colors.put("purple", 0xff800080);
		colors.put("red", 0xffff0000);
		colors.put("rosybrown", 0xffbc8f8f);
		colors.put("royalblue", 0xff4169e1);
		colors.put("saddlebrown", 0xff8b4513);
		colors.put("salmon", 0xfffa8072);
		colors.put("sandybrown", 0xfff4a460);
		colors.put("seagreen", 0xff2e8b57);
		colors.put("seashell", 0xfffff5ee);
		colors.put("sienna", 0xffa0522d);
		colors.put("silver", 0xffc0c0c0);
		colors.put("skyblue", 0xff87ceeb);
		colors.put("slateblue", 0xff6a5acd);
		colors.put("slategray", 0xff708090);
		colors.put("slategrey", 0xff708090);
		colors.put("snow", 0xfffffafa);
		colors.put("springgreen", 0xff00ff7f);
		colors.put("steelblue", 0xff4682b4);
		colors.put("tan", 0xffd2b48c);
		colors.put("teal", 0xff008080);
		colors.put("thistle", 0xffd8bfd8);
		colors.put("tomato", 0xffff6347);
		colors.put("turquoise", 0xff40e0d0);
		colors.put("violet", 0xffee82ee);
		colors.put("wheat", 0xfff5deb3);
		colors.put("white", 0xffffffff);
		colors.put("whitesmoke", 0xfff5f5f5);
		colors.put("yellow", 0xffffff00);
		colors.put("yellowgreen", 0xff9acd32);
		COLOURS = Collections.unmodifiableMap(colors);
	}
}
